package com.antdesignbackend.backend.information.mechanism.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

/**
 * 录入机构
 *
 * @author 不二
 * @email jack.com
 * @date 2020-09-18 14:04:59
 */

@Data
@TableName(value = "t_mechanism")
public class Mechanism implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(value = "Id",type = IdType.AUTO)
	private Integer id;

	//企业名称
	@TableField(value = "Name")
	private String name;
	//法人名称
	@TableField(value = "UserName")
	private String userName;
	//城市编码
	@TableField(value = "CityCode")
	private String cityCode;
	//区县编码
	@TableField(value = "DistrictCode")
	private String districtCode;
	//乡镇编码
	@TableField(value = "TownCode")
	private String townCode;
	//详细地址
	@TableField(value = "Address")
	private String address;
	//完整地址
	@TableField(value = "FullAddress")
	private String fullAddress;
	//联系电话
	@TableField(value = "Phone")
	private String phone;
	//证号
	@TableField(value = "IdCard")
	private String idCard;
	//类型 1动物诊疗机构
	@TableField(value = "Types")
	private Integer types;
	//创建人
	@TableField(value = "CreateUid")
	private Integer createUid;
	//创建时间
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(value = "CreateTime")
	private Date createTime;
}
